//
//  CollectCollectionViewCell.m
//  TextApplication
//
//  Created by dllo on 16/9/17.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "CollectCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface CollectCollectionViewCell ()
@property (nonatomic, strong) UIImageView *picImageView;

@end

@implementation CollectCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _picImageView = [[UIImageView alloc] init];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _picImageView.frame = self.contentView.bounds;
    _picImageView.backgroundColor = [UIColor colorWithWhite:0.176 alpha:1.000];
    [self.contentView addSubview:self.picImageView];
}

- (void)setImageStr:(NSString *)imageStr {
    _imageStr = imageStr;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@", self.imageStr]]];
}

@end
